<?php
require_once('ri/validator/ValidatorFactory.php');

$v= ValidatorFactory::forName('StringLength')
	->setMax(5)
	->setErrorMessage('"%s" is more than 5 characters long');

$v->validate('Works');
?>